package com.gitee.utils

import com.typesafe.config.{Config, ConfigFactory}

object GlobalConfigUtil {
  private val config: Config = ConfigFactory.load()

  val `kafka.bootstrap.servers` = config.getString("kafka.bootstrap.servers")
  val `kafka.group.id` = config.getString("kafka.group.id")
  val `kafka.key.deserializer` = config.getString("kafka.key.deserializer")
  val `kafka.value.deserializer` = config.getString("kafka.value.deserializer")
  val `kafka.auto.offset.reset` = config.getString("kafka.auto.offset.reset")
  val `kafka.flink.partition-discovery.interval-millis` = config.getString("kafka.flink.partition-discovery.interval-millis")
  val `kafka.ods.car` = config.getString("kafka.ods.car")

  def main(args: Array[String]): Unit = {
    println(`kafka.bootstrap.servers`)
    println(`kafka.group.id`)
    println(`kafka.key.deserializer`)
    println(`kafka.value.deserializer`)
    println(`kafka.auto.offset.reset`)
    println(`kafka.flink.partition-discovery.interval-millis`)
    println(`kafka.ods.car`)
  }
}
